package biolabs.model.abscretion;


public class AbscretionPoint {
	double sensorCapacity;
	double sensed;
	int amount;
	int demand;
	boolean active;

	public AbscretionPoint(double sensorCapacity, int amount, int demand){
		this.sensorCapacity = sensorCapacity;
		this.sensed = 0;
		this.amount = amount;
		this.demand = demand;
	}

	public AbscretionPoint(){
		this(0.0, 0, 0);
	}

	public void setSensorCapacity(double capacity) {
		this.sensorCapacity = capacity;
	}

	public double getSensorCapacity() {
		return sensorCapacity;
	}

	public double getSensedAmount() {
		return sensed;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	public int getAmount() {
		return amount;
	}

	public void setDemand(int demand) {
		this.demand = demand;
	}

	public int getDemand(){
		return demand;
	}

	public void increaseSensorCapacity(double d) {
		sensorCapacity += d;
	}

	public void increaseDemand(int d){
		demand += d;
	}

	public void produce(int amount) {
		this.amount += amount;
	}
}
